package com.atguigu.eduservice.service;

import com.atguigu.eduservice.entity.EduChapter;
import com.atguigu.eduservice.entity.dto.chapter.ChapterVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author Y丶HS练习谷粒商城
 * @since 2022-09-24
 */
public interface EduChapterService extends IService<EduChapter> {
    /**
     * 根据课程id查询
     * @param courseId 课程id
     * @return
     */
    List<ChapterVo> getCharterVideoById(String courseId);

    /**
     * 根据id删除实体信息
     * @param id 主键Id
     */
    boolean deleteEntityById(String id);

    /**
     * 根据课程id删除章节
     * @param courseId
     */
    void deleteEntityByCourseId(String courseId);
}
